/*
 * IndexNode.h
 *
 *  Created on: Oct 9, 2011
 *      Author: USHonDan
 */

#ifndef INDEXNODE_H_
#define INDEXNODE_H_

#include <stdlib.h>
#include "Node.h"

class IndexNode : public Node {
public:
	IndexNode(Node *nodePtr = NULL);
	~IndexNode();

	Node *GetChildNode(int idx);
	Node *SearchKeyNextChild(int key);

	int SplitIndexNode(IndexNode *nextEmpty, int splitIdx); //returns last index of first node

public: //no accessors needed
	Node *_child; //pointer to first child node in child nodegroup
};

#endif /* INDEXNODE_H_ */
